import request from '@/utils/request'

// 新增
export function addscheme(data) {
  return request({
    url: '/interfaces/scheme',
    method: 'post',
    data: data
  })
}

// 查询
export function schemeList(query) {
  return request({
    url: '/interfaces/scheme/list',
    method: 'get',
    params: query
  })
}

export function schemeById(id) {
  return request({
    url: `/interfaces/scheme/${id}`,
    method: 'get',
  })
}


export function schemeipd(data) {
  return request({
    url: '/interfaces/scheme',
    method: 'put',
    data: data
  })
}
